//
//  recommendVC.m
//  HappyStore
//
//  Created by 陈锋 on 16/5/19.
//  Copyright © 2016年 LLJ. All rights reserved.
//

#import "recommendViC.h"



@interface recommendViC ()
@end

@implementation recommendViC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.recommendView.frame = CGRectMake((screenW - 280)/2, (screenH - 280)/2, 280, 280);
    
    self.recommendView.backgroundColor = [UIColor whiteColor];
    self.recommendView.layer.cornerRadius = 10.f;
    self.recommendView.layer.masksToBounds = YES;

    [self.view addSubview:self.recommendView];
    
    self.view.backgroundColor = [UIColor colorWithRed:0.0/255.0 green:0.0/255.0 blue:0.0/255.0 alpha:0.5];


    
    // 按钮监听
    [self.recommendView.cancelBtn addTarget:self action:@selector(cancel) forControlEvents:UIControlEventTouchUpInside];
}
- (recommendView *)recommendView
{
    if (!_recommendView) {
        self.recommendView = [[[NSBundle mainBundle] loadNibNamed:@"recommendView" owner:self options:nil] lastObject];
    }
    return _recommendView;
}

-(void)cancel{
    
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end
